package com.ztl.jni;

public class CanService {
	static {
		try {
  			System.loadLibrary("ztlcan");
		 
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("Load Library error!!");
		}
	}
	
	public native static int init();
	public native static int openCan(String canx);
	
	public native static int   closeCan( int fd);
	public native static int   sendCan(int fd, long canid, long eff, long rtr, int len, byte[] data) ;
	public native static int  receiveCan(int fd, byte[] data) ;
}
